# -*- coding: utf-8 -*-

import logging
from ffmpeg import *


logging.basicConfig(
    level=logging.DEBUG,
    format="%(asctime)s %(filename)s [%(levelname)s] %(message)s",
    datefmt="%Y %m %d %H:%M:%S",
    filename="ffmpeg.log",
    filemode="w"
)

console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter("[%(levelname)s]\t\t%(message)s")
console.setFormatter(formatter)
logging.getLogger("").addHandler(console)

gen_onepicvideo("res\\INPUT.jpg", "res\\INPUT.mp3", "res\\OUTPUT.mp4")
